package com.example.consumer.controller;

import com.example.common.service.Shop;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class UserController {
    @Resource
    private Shop shop;
    @GetMapping("getShop")
    @ResponseBody
    public String getShop(){
        System.out.println("--------consumer---------");
        return shop.getShop().toString();
    }
}
